<?php
	header('Content-Type:text/html;Charset=utf-8');
	header("Access-Control-Allow-Origin:*");
	header("Access-Control-Allow-Methods:GET,POST");

	$signName=$_REQUEST['userName'];
	$conn=mysqli_connect("localhost:3306","root","sdo2605587","process");
	$query_str="select * from fly WHERE name='$signName'";
	$result=mysqli_query($conn,$query_str);
	if($result){
		$result_count=mysqli_num_rows($result);
		if($result_count>0){
			echo "EXIST";
		}else{
			echo "NOEXIST";
		}
	}else{
		echo "SERVER ERROR";
	}
?>